<%@page import="javax.servlet.http.*" %>
<%@page import="utilities.Helper"%>
<%@page import="utilities.Uporabnik"%>

<%
String email = request.getParameter("email");
String geslo = request.getParameter("geslo");

if (Helper.validacija(email, geslo)) {
	session.setAttribute("uporabnik", new Uporabnik(email, geslo));
	response.sendRedirect("index.jsp");
	
} else {
	response.sendRedirect("prijava.jsp");
}
%>